-- GENERATED SPELL FOR [Lordaeron Footman] --


function spell0_27745(pUnit, Event) --@Defend,Self--
pUnit:FullCastSpellOnTarget(52317,pUnit)
pUnit:RegisterEvent('Sorts_27745', 4325, 1)
end

function spell1_27745(pUnit, Event) --@Heroic Strike,n/a--
pUnit:FullCastSpellOnTarget(25710,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27745', 636, 1)
end

function Sorts_27745(pUnit, Event)
local choix_sorts_27745 = math.random(0, 1)
if choix_sorts_27745 == 0 then
pUnit:RegisterEvent('spell0_27745', 1, 1)
end
if choix_sorts_27745 == 1 then
pUnit:RegisterEvent('spell1_27745', 1, 1)
end
end

function mob27745_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27745', math.random(1500, 3000), 1)
end

function mob27745_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27745_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27745_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27745, 1, 'mob27745_Action')
RegisterUnitEvent(27745, 2, 'mob27745_Leave')
RegisterUnitEvent(27745, 3, 'mob27745_Kill')
RegisterUnitEvent(27745, 4, 'mob27745_Die')
